package model.department;

import java.util.List;

import model.BaseDAO;

public class DepartmentTypeDAO extends BaseDAO{

	@Override
	protected void setStoredProcedureName() {
		this.selectStoreProcedureName = "selectDepartmentType";
		this.insertStoreProcedureName = "insertDepartmentType";
		this.updateStoreProcedureName = "updateDepartmentType";
		this.deleteStoreProcedureName = "deleteDepartmentType";	
	}
	
	/**
	 * Return all Department Types
	 * @return
	 * @throws Exception
	 */
	public List<DepartmentType> selectAllDepartmentType() throws Exception {
		return (List<DepartmentType>) this.selectObjectList(null);	// method return list of objects. Null say than no parameters, return all objects
	}
	
	

}
